import QtQuick 2.12
import QtQuick.Window 2.12

Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")

    Text {
        id: text1
        text: "The quick brown fox"
        color: "#303030"
        font.family: "Ubuntu"
        font.pixelSize: 28
    }
    Text {
        width:100
        //空间不够，在中间以...代替，进行省略
        elide: Text.ElideMiddle
        y: text1.y+text1.height+20
        text: "一个很长很长的句子 !!!!!!!"
        //设置样式凹陷颜色
        style: Text.Sunken
        font.family: "宋体"
        styleColor: '#FF4444'
        //设置字体颜色
        color: "#ffffff"
        //换行
        wrapMode: Text.WrapAtWordBoundaryOrAnywhere
        font.pixelSize: 28

    }
}
